﻿<UserControl x:Class="WorkflowDesigner.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:more="clr-namespace:NokolaNavi;assembly=NokolaNavi" 
    xmlns:SandDock="clr-namespace:Divelements.SandDock;assembly=Divelements.SandDock" 
    xmlns:SL30PropertyGrid="clr-namespace:SL30PropertyGrid;assembly=SL30PropertyGrid" 
    xmlns:Liquid="clr-namespace:Liquid;assembly=Liquid" 
    xmlns:Controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" 
    xmlns:SandRibbon="clr-namespace:Divelements.SandRibbon;assembly=Divelements.SandRibbon" 
    xmlns:WorkflowDesigner="clr-namespace:WorkflowDesigner" 
    xmlns:Controls1="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit" 
    Width="Auto" Height="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <!-- menu -->
        <Grid x:Name="Menu" Background="White" Grid.Row="0">
            <Image Source="images/bgcompact.jpg" Stretch="UniformToFill" Height="43" HorizontalAlignment="Stretch" VerticalAlignment="Top"/>
            <Rectangle VerticalAlignment="Top" HorizontalAlignment="Stretch" Fill="#4f000000" Height="43" />
            <Image VerticalAlignment="Top" HorizontalAlignment="Stretch" Height="14" Margin="0,43,0,0"  Stretch="None"
            Source="images/bgshadow.jpg" />

            <TextBlock x:Name="textInfo" IsHitTestVisible="False" HorizontalAlignment="Center" 
                   VerticalAlignment="Top" Margin="0,12,540,0" FontSize="14" 
                   Foreground="#FFffffff" />

            <StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Center" Margin="0,0,0,0" Background="Transparent" >
                <more:NaviButton Title="Home" ImageSource="images/home.png" 
                                 TransitionColor="#7fD8935F" Margin="2,0,0,0" 
                                 MouseMove="ButtonSeven_MouseMove" 
                                 NavigateUri="Home.aspx"/>
                <more:NaviButton Title="Workflow" ImageSource="images/games.png" 
                                 TransitionColor="#7f1E5FA7" Margin="2,0,0,0" 
                                 MouseMove="ButtonSeven_MouseMove"
                                 NavigateUri="Workflow.aspx"/>
                <more:NaviButton Title="Report" 
                                 ImageSource="images/samples.png" 
                                 TransitionColor="#7f47D4F7" Margin="2,0,0,0" MouseMove="ButtonSeven_MouseMove"
                                 NavigateUri="Report.aspx"/>
                <more:NaviButton Title="Analysis" ImageSource="images/sourcecode.png" 
                                 TransitionColor="#7fDBE0E3" Margin="2,0,0,0" 
                                 MouseMove="ButtonSeven_MouseMove"
                                 NavigateUri="Analysis.aspx"/>
                <more:NaviButton Title="Rules" ImageSource="images/tutorials.png" 
                                 TransitionColor="#7f66FF5E" Margin="2,0,0,0" 
                                 MouseMove="ButtonSeven_MouseMove"
                                 NavigateUri="Rules.aspx"/>
                <more:NaviButton Title="Blog" ImageSource="images/blog.png" 
                                 TransitionColor="#7fF7D15C" Margin="2,0,0,0" 
                                 MouseMove="ButtonSeven_MouseMove"
                                 NavigateUri=""/>
                <more:NaviButton Title="Links" ImageSource="images/links.png" 
                                 TransitionColor="#7f3E8DDD" Margin="2,0,0,0" 
                                 MouseMove="ButtonSeven_MouseMove"
                                 NavigateUri="https://portal.discoverylogic.com"
                                 OpenInNewWindow="True"/>
            </StackPanel>
            <TextBlock x:Name="textTopTitle" Text="Analytics@DL" Foreground="White" Margin="4,12,0,0" IsHitTestVisible="False" FontSize="14" />
        </Grid>

        <!-- tool bar -->
        <SandRibbon:Ribbon Grid.Row="1">
            <SandRibbon:Ribbon.ToolBar>
                <SandRibbon:QuickAccessToolBar>
                    <SandRibbon:Button 
                        Text="New" SandRibbon:ScreenTip.Text="New" SmallImage="images/new.png" Size="Small"
                        x:Name="NewDocument" MouseLeftButtonUp="NewDocument_Clicked"/>
                    <SandRibbon:Button 
                        Text="Open" SandRibbon:ScreenTip.Text="Open" SmallImage="images/open.png" Size="Small"
                        x:Name="OpenDocument" MouseLeftButtonUp="OpenDocument_Clicked"/>
                    <SandRibbon:Button 
                        Text="Publish" SandRibbon:ScreenTip.Text="Publish" SmallImage="images/saveas.png" Size="Small"
                        x:Name="PublishDocument" MouseLeftButtonUp="PublishDocument_Clicked"/>
                    <SandRibbon:Button 
                        Text="Save" SandRibbon:ScreenTip.Text="Save" SmallImage="images/save.png" Size="Small"
                        x:Name="SaveDocument" MouseLeftButtonUp="SaveDocument_Clicked"/>
                    <SandRibbon:Button 
                        Text="Start" SandRibbon:ScreenTip.Text="Manual start" SmallImage="images/mouse.png" Size="Small"
                        x:Name="TestWorkflow" MouseLeftButtonUp="TestWorkflow_MouseLeftButtonUp"/>
                    <SandRibbon:Button 
                        Text="Print" SandRibbon:ScreenTip.Text="Print workflow" SmallImage="images/print.png" Size="Small"
                        x:Name="PrintWorkflow" MouseLeftButtonUp="PrintWorkflow_MouseLeftButtonUp"/>
                </SandRibbon:QuickAccessToolBar>
            </SandRibbon:Ribbon.ToolBar>
        </SandRibbon:Ribbon>
        
        <!-- workspace -->
        <SandDock:DockSite Grid.Row="2" x:Name="DockSite">
            <SandDock:DockedSplitContainer Dock="Left" ContentSize="150">
                <SandDock:WindowGroup IsPinned="True">
                    <SandDock:ToolWindow Title="Toolbox" Name="ToolboxNaviPane">
                        <WorkflowDesigner:Toolbox x:Name="ToolboxNavi"></WorkflowDesigner:Toolbox>
                    </SandDock:ToolWindow>
                    <SandDock:ToolWindow Title="Solutions" Name="SolutionNaviPane">
                        <WorkflowDesigner:SolutionNavigator x:Name="SolutionNavi"></WorkflowDesigner:SolutionNavigator>
                    </SandDock:ToolWindow>
                </SandDock:WindowGroup>
            </SandDock:DockedSplitContainer>
            
            <SandDock:DockedSplitContainer Dock="Right" ContentSize="150">
                <SandDock:WindowGroup IsPinned="True">
                    <SandDock:ToolWindow Title="Property" Name="propertyPane">
                        <SL30PropertyGrid:PropertyGrid x:Name="propGrid"></SL30PropertyGrid:PropertyGrid>
                    </SandDock:ToolWindow>
                </SandDock:WindowGroup>
            </SandDock:DockedSplitContainer>
            
            <SandDock:DocumentContainer Margin="2">
                <SandDock:WindowGroup x:Name="DocWindowGroup">
                    <!--<SandDock:DocumentWindow
                        x:Name="TabDoc"
                        Title="New workflow">
                    </SandDock:DocumentWindow>-->
                </SandDock:WindowGroup>
            </SandDock:DocumentContainer>
        </SandDock:DockSite>
        
        <!-- status panel -->
        <Border Grid.Row="3" BorderBrush="#414141" BorderThickness="0,1,0,0" HorizontalAlignment="Stretch">
            <Controls1:DockPanel 
                Grid.Row="1" LastChildFill="True"
                HorizontalAlignment="Stretch" Height="18">
                <Liquid:ProgressBarPlus x:Name="progress" Width="200" Height="16" Controls1:DockPanel.Dock="Right"/>
                <TextBlock Name="statusLabel" Text="Ready" Padding="12,2,12,2" HorizontalAlignment="Stretch"/>
            </Controls1:DockPanel>
        </Border>
    </Grid>
</UserControl>
